<template>
	<view class="container">
		<view class="user">
			<image class="img"
				src="https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
				mode=""></image>
			<view class="">{{list.nickname}}</view>
		</view>

		<image class="picture" :src="list.commenttpbh" mode="widthFix"></image>

		<view class="comment">
			<text style="color: #0566ba;">@{{list.xhmc}}</text>
			{{list.commentms==null? '暂无文字描述~' : list.commentms}}
		</view>

		<view class="text">
			<view class="left">商品名称：</view>
			<view class="right">{{list.xhmc}}</view>
		</view>
		<view class="text">
			<view class="left">商品种类：</view>
			<view class="right">{{list.xhzl}}</view>
		</view>
		<view class="text">
			<view class="left">商品主题：</view>
			<view class="right">{{list.xhzt}}</view>
		</view>
		<view class="text">
			<view class="left">商品价格：</view>
			<view class="right">￥{{list.xhyjjg}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ''
			}
		},
		onLoad(options) {
			var str = options.item
			this.list = JSON.parse(str) 
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.container {
		width: 710rpx;
		margin: 0 auto;

		.comment {
			text-indent: 2em;
			width: 100%;
			line-height: 40rpx;
			margin: 20rpx 0;
			color: #333;
		}

		.picture {
			width: 70%;
			// height: 320rpx;
		}

		.text {
			display: flex;
			line-height: 60rpx;
			color: #6c6c6c;

			.left {
				letter-spacing: 4rpx;
			}
		}

		.user {
			font-weight: bold;
			display: flex;
			line-height: 80rpx;

			.img {
				width: 70rpx;
				height: 70rpx;
				border-radius: 50%;
				margin-right: 10rpx;
			}
		}
	}
</style>
